package mark_2;

public class Application {

    public static void main(String[] args){
        Student s1 =  new Student("mark",19,"1111");
        Student s2 =  new Student("mark1",18,"1112");

        if (s1.getAge()>s2.getAge()){
            System.out.println(s1.getName()+" is older than" + s2.getName() + " " + ((s1.getAge()) - s2.getAge()) + "years");
        }else {
            System.out.println(s2.getName()+" is older than" + s1.getName() + " " + ((s2.getAge()) - s1.getAge()) + "years");
        }

    }
}
